<!-- HTML header for doxygen 1.8.20-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=9"/>
	<meta name="generator" content="Doxygen 1.9.4"/>
	<meta name="viewport" content="width=device-width, initial-scale=1"/>
	<title>Raspberry Pi Pico SDK: include/hardware/spi.h File Reference</title>
	<!-- <link href="tabs.css" rel="stylesheet" type="text/css"/> -->
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="dynsections.js"></script>
	<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
	<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
	<link href="doxygen.css" rel="stylesheet" type="text/css" />
	<link href="normalise.css" rel="stylesheet" type="text/css"/>
<link href="main.css" rel="stylesheet" type="text/css"/>
<link href="styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
	<div class="navigation-mobile">
		<div class="logo--mobile">
			<a href="/"><img src="logo-mobile.svg" alt="Raspberry Pi"></a>
		</div>
		<div class="navigation-toggle">
			<span class="line-1"></span>
			<span class="line-2">
				<p>Menu Toggle</p>
			</span>
			<span class="line-3"></span>
		</div>
	</div>
	<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
		<div class="logo">
			<a href="index.html"> <img src="logo.svg" alt="Raspberry Pi"></a>
			<span style="display: inline-block; margin-top: 10px;">
				v2.1.0
			</span>
		</div>
		<div class="navigation-footer">
			<img src="logo-mobile.svg" alt="Raspberry Pi">
			<a href="https://www.raspberrypi.com/" target="_blank">By Raspberry Pi Ltd</a>
		</div>
<!-- 		<div class="search">
			<form>
				<input type="search" name="search" id="search" placeholder="Search">
				<input type="submit" value="Search">
			</form>
		</div> -->
<!-- Generated by Doxygen 1.9.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">spi.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="pico_8h_source.html">pico.h</a>&quot;</code><br />
<code>#include &quot;hardware/structs/spi.h&quot;</code><br />
<code>#include &quot;hardware/regs/dreq.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for spi.h:</div>
<div class="dyncontent">
<div class="center"><img src="rp2__common_2hardware__spi_2include_2hardware_2spi_8h__incl.png" border="0" usemap="#ainclude_2hardware_2spi_8h" alt=""/></div>
<map name="ainclude_2hardware_2spi_8h" id="ainclude_2hardware_2spi_8h">
<area shape="rect" title=" " alt="" coords="496,5,665,32"/>
<area shape="rect" href="pico_8h.html" title=" " alt="" coords="411,80,473,107"/>
<area shape="rect" title=" " alt="" coords="497,80,664,107"/>
<area shape="rect" title=" " alt="" coords="689,80,849,107"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2types_8h_source.html" title=" " alt="" coords="158,304,259,331"/>
<area shape="rect" title=" " alt="" coords="252,155,365,181"/>
<area shape="rect" href="common_2pico__base__headers_2include_2pico_2config_8h_source.html" title=" " alt="" coords="390,155,494,181"/>
<area shape="rect" href="platform_8h.html" title=" " alt="" coords="596,155,717,181"/>
<area shape="rect" href="error_8h_source.html" title=" " alt="" coords="741,155,836,181"/>
<area shape="rect" href="assert_8h_source.html" title=" " alt="" coords="5,379,111,405"/>
<area shape="rect" title=" " alt="" coords="74,453,157,480"/>
<area shape="rect" title=" " alt="" coords="211,379,281,405"/>
<area shape="rect" title=" " alt="" coords="306,379,381,405"/>
<area shape="rect" title=" " alt="" coords="173,229,337,256"/>
<area shape="rect" href="compiler_8h_source.html" title=" " alt="" coords="362,229,543,256"/>
<area shape="rect" href="sections_8h_source.html" title=" " alt="" coords="567,229,746,256"/>
<area shape="rect" href="panic_8h_source.html" title=" " alt="" coords="770,229,930,256"/>
<area shape="rect" title=" " alt="" coords="954,229,1165,256"/>
<area shape="rect" title=" " alt="" coords="1189,229,1340,256"/>
<area shape="rect" title=" " alt="" coords="357,304,548,331"/>
</map>
</div>
</div>
<p><a href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:af774322b726b6272e417085e87ab3e4f"><td class="memItemLeft" align="right" valign="top"><a id="af774322b726b6272e417085e87ab3e4f" name="af774322b726b6272e417085e87ab3e4f"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>PARAM_ASSERTIONS_ENABLED_HARDWARE_SPI</b>&#160;&#160;&#160;0</td></tr>
<tr class="separator:af774322b726b6272e417085e87ab3e4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d931d2e2e5b1dfd8d5f1dea80df4dbd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga9d931d2e2e5b1dfd8d5f1dea80df4dbd">spi0</a>&#160;&#160;&#160;((<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *)spi0_hw)</td></tr>
<tr class="separator:ga9d931d2e2e5b1dfd8d5f1dea80df4dbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3de59ab064bc9405b059edce4366c694"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga3de59ab064bc9405b059edce4366c694">spi1</a>&#160;&#160;&#160;((<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *)spi1_hw)</td></tr>
<tr class="separator:ga3de59ab064bc9405b059edce4366c694"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga39308f1ccde24d91e0075059b380dd3a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga39308f1ccde24d91e0075059b380dd3a">SPI_NUM</a>(spi)</td></tr>
<tr class="memdesc:ga39308f1ccde24d91e0075059b380dd3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the SPI number for a SPI instance.  <a href="group__hardware__spi.html#ga39308f1ccde24d91e0075059b380dd3a">More...</a><br /></td></tr>
<tr class="separator:ga39308f1ccde24d91e0075059b380dd3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae1d6ac7c86e9f76d5c1a38c6dfd978b9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gae1d6ac7c86e9f76d5c1a38c6dfd978b9">SPI_INSTANCE</a>(num)</td></tr>
<tr class="memdesc:gae1d6ac7c86e9f76d5c1a38c6dfd978b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the SPI instance with the given SPI number.  <a href="group__hardware__spi.html#gae1d6ac7c86e9f76d5c1a38c6dfd978b9">More...</a><br /></td></tr>
<tr class="separator:gae1d6ac7c86e9f76d5c1a38c6dfd978b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa470b3363ffe872bba90d31814d33baa"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gaa470b3363ffe872bba90d31814d33baa">SPI_DREQ_NUM</a>(spi,  is_tx)</td></tr>
<tr class="memdesc:gaa470b3363ffe872bba90d31814d33baa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the <a class="el" href="group__hardware__dma.html#ga8def0ea481095c94f3a0dd0b4fed999e">dreq_num_t</a> used for pacing DMA transfers to or from this SPI instance. If is_tx is true, then it is for transfers to the SPI else for transfers from the SPI.  <a href="group__hardware__spi.html#gaa470b3363ffe872bba90d31814d33baa">More...</a><br /></td></tr>
<tr class="separator:gaa470b3363ffe872bba90d31814d33baa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a9b7b2428cfc34b20c3857980811b51a9"><td class="memItemLeft" align="right" valign="top"><a id="a9b7b2428cfc34b20c3857980811b51a9" name="a9b7b2428cfc34b20c3857980811b51a9"></a>
typedef struct spi_inst&#160;</td><td class="memItemRight" valign="bottom"><b>spi_inst_t</b></td></tr>
<tr class="memdesc:a9b7b2428cfc34b20c3857980811b51a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opaque type representing an SPI instance. <br /></td></tr>
<tr class="separator:a9b7b2428cfc34b20c3857980811b51a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="enum-members" name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga9850de61d3f6dcacbfb4e5cc5a7d2951"><td class="memItemLeft" align="right" valign="top"><a id="ga9850de61d3f6dcacbfb4e5cc5a7d2951" name="ga9850de61d3f6dcacbfb4e5cc5a7d2951"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga9850de61d3f6dcacbfb4e5cc5a7d2951">spi_cpha_t</a> { <b>SPI_CPHA_0</b> = 0
, <b>SPI_CPHA_1</b> = 1
 }</td></tr>
<tr class="memdesc:ga9850de61d3f6dcacbfb4e5cc5a7d2951"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of SPI CPHA (clock phase) values. <br /></td></tr>
<tr class="separator:ga9850de61d3f6dcacbfb4e5cc5a7d2951"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga49a77d9a0320db6d3451a9dda2b8a24b"><td class="memItemLeft" align="right" valign="top"><a id="ga49a77d9a0320db6d3451a9dda2b8a24b" name="ga49a77d9a0320db6d3451a9dda2b8a24b"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga49a77d9a0320db6d3451a9dda2b8a24b">spi_cpol_t</a> { <b>SPI_CPOL_0</b> = 0
, <b>SPI_CPOL_1</b> = 1
 }</td></tr>
<tr class="memdesc:ga49a77d9a0320db6d3451a9dda2b8a24b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of SPI CPOL (clock polarity) values. <br /></td></tr>
<tr class="separator:ga49a77d9a0320db6d3451a9dda2b8a24b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa9e8effacf4291301048ef7df03d353e"><td class="memItemLeft" align="right" valign="top"><a id="gaa9e8effacf4291301048ef7df03d353e" name="gaa9e8effacf4291301048ef7df03d353e"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gaa9e8effacf4291301048ef7df03d353e">spi_order_t</a> { <b>SPI_LSB_FIRST</b> = 0
, <b>SPI_MSB_FIRST</b> = 1
 }</td></tr>
<tr class="memdesc:gaa9e8effacf4291301048ef7df03d353e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of SPI bit-order values. <br /></td></tr>
<tr class="separator:gaa9e8effacf4291301048ef7df03d353e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga1dba14fb5488b5e4a69b30678f774df0"><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga1dba14fb5488b5e4a69b30678f774df0">spi_init</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, uint baudrate)</td></tr>
<tr class="memdesc:ga1dba14fb5488b5e4a69b30678f774df0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise SPI instances.  <a href="group__hardware__spi.html#ga1dba14fb5488b5e4a69b30678f774df0">More...</a><br /></td></tr>
<tr class="separator:ga1dba14fb5488b5e4a69b30678f774df0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf0c3a38c80cf84a80602755d7bac77e2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gaf0c3a38c80cf84a80602755d7bac77e2">spi_deinit</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="memdesc:gaf0c3a38c80cf84a80602755d7bac77e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitialise SPI instances.  <a href="group__hardware__spi.html#gaf0c3a38c80cf84a80602755d7bac77e2">More...</a><br /></td></tr>
<tr class="separator:gaf0c3a38c80cf84a80602755d7bac77e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga37f4c04ce4165ac8c129226336a0b66c"><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga37f4c04ce4165ac8c129226336a0b66c">spi_set_baudrate</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, uint baudrate)</td></tr>
<tr class="memdesc:ga37f4c04ce4165ac8c129226336a0b66c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set SPI baudrate.  <a href="group__hardware__spi.html#ga37f4c04ce4165ac8c129226336a0b66c">More...</a><br /></td></tr>
<tr class="separator:ga37f4c04ce4165ac8c129226336a0b66c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa295443736ab03ac882f2d9383cac139"><td class="memItemLeft" align="right" valign="top">uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gaa295443736ab03ac882f2d9383cac139">spi_get_baudrate</a> (const <a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="memdesc:gaa295443736ab03ac882f2d9383cac139"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get SPI baudrate.  <a href="group__hardware__spi.html#gaa295443736ab03ac882f2d9383cac139">More...</a><br /></td></tr>
<tr class="separator:gaa295443736ab03ac882f2d9383cac139"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga88620398eae6e0f66b551be57a279273"><td class="memItemLeft" align="right" valign="top">static uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga88620398eae6e0f66b551be57a279273">spi_get_index</a> (const <a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="memdesc:ga88620398eae6e0f66b551be57a279273"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert SPI instance to hardware instance number.  <a href="group__hardware__spi.html#ga88620398eae6e0f66b551be57a279273">More...</a><br /></td></tr>
<tr class="separator:ga88620398eae6e0f66b551be57a279273"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6065b3910bab1082ff2293a0a7d1486"><td class="memItemLeft" align="right" valign="top"><a id="ab6065b3910bab1082ff2293a0a7d1486" name="ab6065b3910bab1082ff2293a0a7d1486"></a>
static <a class="el" href="structspi__hw__t.html">spi_hw_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>spi_get_hw</b> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="separator:ab6065b3910bab1082ff2293a0a7d1486"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cbe77d5716053c61fe04d29224f4e22"><td class="memItemLeft" align="right" valign="top"><a id="a2cbe77d5716053c61fe04d29224f4e22" name="a2cbe77d5716053c61fe04d29224f4e22"></a>
static const <a class="el" href="structspi__hw__t.html">spi_hw_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>spi_get_const_hw</b> (const <a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="separator:a2cbe77d5716053c61fe04d29224f4e22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga137168d01d302239d52420ad4f895d44"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga137168d01d302239d52420ad4f895d44">spi_set_format</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, uint data_bits, <a class="el" href="group__hardware__spi.html#ga49a77d9a0320db6d3451a9dda2b8a24b">spi_cpol_t</a> cpol, <a class="el" href="group__hardware__spi.html#ga9850de61d3f6dcacbfb4e5cc5a7d2951">spi_cpha_t</a> cpha, __unused <a class="el" href="group__hardware__spi.html#gaa9e8effacf4291301048ef7df03d353e">spi_order_t</a> order)</td></tr>
<tr class="memdesc:ga137168d01d302239d52420ad4f895d44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configure SPI.  <a href="group__hardware__spi.html#ga137168d01d302239d52420ad4f895d44">More...</a><br /></td></tr>
<tr class="separator:ga137168d01d302239d52420ad4f895d44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga127e4bf0fc1d7d271d2e9160c6e3b722"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga127e4bf0fc1d7d271d2e9160c6e3b722">spi_set_slave</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, bool slave)</td></tr>
<tr class="memdesc:ga127e4bf0fc1d7d271d2e9160c6e3b722"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set SPI master/slave.  <a href="group__hardware__spi.html#ga127e4bf0fc1d7d271d2e9160c6e3b722">More...</a><br /></td></tr>
<tr class="separator:ga127e4bf0fc1d7d271d2e9160c6e3b722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0d7c020fac16f57ee8f805000713e405"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga0d7c020fac16f57ee8f805000713e405">spi_is_writable</a> (const <a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="memdesc:ga0d7c020fac16f57ee8f805000713e405"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether a write can be done on SPI device.  <a href="group__hardware__spi.html#ga0d7c020fac16f57ee8f805000713e405">More...</a><br /></td></tr>
<tr class="separator:ga0d7c020fac16f57ee8f805000713e405"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga20dcaa3037e92bbcbab50b8635f102ff"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga20dcaa3037e92bbcbab50b8635f102ff">spi_is_readable</a> (const <a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="memdesc:ga20dcaa3037e92bbcbab50b8635f102ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether a read can be done on SPI device.  <a href="group__hardware__spi.html#ga20dcaa3037e92bbcbab50b8635f102ff">More...</a><br /></td></tr>
<tr class="separator:ga20dcaa3037e92bbcbab50b8635f102ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5623d0396207ccbd3faa64a5d4f397c3"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga5623d0396207ccbd3faa64a5d4f397c3">spi_is_busy</a> (const <a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi)</td></tr>
<tr class="memdesc:ga5623d0396207ccbd3faa64a5d4f397c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether SPI is busy.  <a href="group__hardware__spi.html#ga5623d0396207ccbd3faa64a5d4f397c3">More...</a><br /></td></tr>
<tr class="separator:ga5623d0396207ccbd3faa64a5d4f397c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabb840d4e3db64ea70fad6bb740717910"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gabb840d4e3db64ea70fad6bb740717910">spi_write_read_blocking</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, const uint8_t *src, uint8_t *dst, size_t len)</td></tr>
<tr class="memdesc:gabb840d4e3db64ea70fad6bb740717910"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write/Read to/from an SPI device.  <a href="group__hardware__spi.html#gabb840d4e3db64ea70fad6bb740717910">More...</a><br /></td></tr>
<tr class="separator:gabb840d4e3db64ea70fad6bb740717910"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga541ec2a1eee4c7fee2134a8415f3b4c8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga541ec2a1eee4c7fee2134a8415f3b4c8">spi_write_blocking</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, const uint8_t *src, size_t len)</td></tr>
<tr class="memdesc:ga541ec2a1eee4c7fee2134a8415f3b4c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to an SPI device, blocking.  <a href="group__hardware__spi.html#ga541ec2a1eee4c7fee2134a8415f3b4c8">More...</a><br /></td></tr>
<tr class="separator:ga541ec2a1eee4c7fee2134a8415f3b4c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga40ce84e76797f81872f12557e537fc48"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga40ce84e76797f81872f12557e537fc48">spi_read_blocking</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, uint8_t repeated_tx_data, uint8_t *dst, size_t len)</td></tr>
<tr class="memdesc:ga40ce84e76797f81872f12557e537fc48"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read from an SPI device.  <a href="group__hardware__spi.html#ga40ce84e76797f81872f12557e537fc48">More...</a><br /></td></tr>
<tr class="separator:ga40ce84e76797f81872f12557e537fc48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad3b96ae828fec8af4b0617db7e904019"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gad3b96ae828fec8af4b0617db7e904019">spi_write16_read16_blocking</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, const uint16_t *src, uint16_t *dst, size_t len)</td></tr>
<tr class="memdesc:gad3b96ae828fec8af4b0617db7e904019"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write/Read half words to/from an SPI device.  <a href="group__hardware__spi.html#gad3b96ae828fec8af4b0617db7e904019">More...</a><br /></td></tr>
<tr class="separator:gad3b96ae828fec8af4b0617db7e904019"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacff6be19b2de92a34b295597f3ae8572"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#gacff6be19b2de92a34b295597f3ae8572">spi_write16_blocking</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, const uint16_t *src, size_t len)</td></tr>
<tr class="memdesc:gacff6be19b2de92a34b295597f3ae8572"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to an SPI device.  <a href="group__hardware__spi.html#gacff6be19b2de92a34b295597f3ae8572">More...</a><br /></td></tr>
<tr class="separator:gacff6be19b2de92a34b295597f3ae8572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga743b7fbdf120a1b5fc098145e3ce8eaf"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga743b7fbdf120a1b5fc098145e3ce8eaf">spi_read16_blocking</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, uint16_t repeated_tx_data, uint16_t *dst, size_t len)</td></tr>
<tr class="memdesc:ga743b7fbdf120a1b5fc098145e3ce8eaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read from an SPI device.  <a href="group__hardware__spi.html#ga743b7fbdf120a1b5fc098145e3ce8eaf">More...</a><br /></td></tr>
<tr class="separator:ga743b7fbdf120a1b5fc098145e3ce8eaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6241d6c368b1af1b83a12c1e75515486"><td class="memItemLeft" align="right" valign="top">static uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__hardware__spi.html#ga6241d6c368b1af1b83a12c1e75515486">spi_get_dreq</a> (<a class="el" href="rp2__common_2hardware__spi_2include_2hardware_2spi_8h.html#a9b7b2428cfc34b20c3857980811b51a9">spi_inst_t</a> *spi, bool is_tx)</td></tr>
<tr class="memdesc:ga6241d6c368b1af1b83a12c1e75515486"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the DREQ to use for pacing transfers to/from a particular SPI instance.  <a href="group__hardware__spi.html#ga6241d6c368b1af1b83a12c1e75515486">More...</a><br /></td></tr>
<tr class="separator:ga6241d6c368b1af1b83a12c1e75515486"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->

	<script src="main.js"></script>
</body>
</html>